<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- Bootstrap -->
    <link href="__STATIC__/admin/assets/css/vendor/bootstrap/bootstrap.min.css" rel="stylesheet">
    <!--引入图标样式-->
    <link rel="stylesheet" href="__STATIC__/admin/assets/font-awesome/css/font-awesome.min.css">
    <!--引入复选框样式-->
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/vendor/bootstrap-checkbox.css">
    <!--引入下拉表单-->
    <link rel="stylesheet" href="__STATIC__/admin/bootstrap-select/dist/css/bootstrap-select.css">
    <!--引入自定义样式-->
    <link href="__STATIC__/admin/assets/css/editorder.css?v=20180203" rel="stylesheet">
    <!--引入日志时间轴样式-->
    <link href="__STATIC__/admin/assets/css/order_log.css?v=20180203" rel="stylesheet">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
</head>
<body>
<style>
    .input-group[class*=col-] {
        float: left;
        margin-top: 20px;
    }

    [class*="col-"] {
        padding-right: 0;
        padding-left: 0;
    }

    .form-control, .input-group-addon {
        border-radius: 0;
        padding: 6px;
        background-color: #fff;
    }

    .radio label:after {
        font-size: 13px;
        content: "";
        text-align: center;
        display: inline-block;
        width: 16px;
        height: 16px;
        position: absolute;
        -o-transform: scale(0);
        -ms-transform: scale(0);
        -moz-transform: scale(0);
        -webkit-transform: scale(0);
        transform: scale(0);
        border-radius: 99px;
        left: 0px;
        top: 0px;
        background-color: #69d7de;
        border: 1px solid #69d7de;
    }

    .radio, .checkbox {
        padding-left: 20px;
    }

    .radio input[type=radio]:checked + label:before {
        border: 1px solid #69d7de;
    }

    .radio-transparent label {
        line-height: 17px;
        margin-right: 0;
    }

    .alert-red {

        color: #ff4a43;
        background-color: #ffdddc;
        border-color: #ffaca9;
    }

    .alert-red small {
        padding: 5px 10px;
        margin-top: 0px;
    }

    .input-group {
        position: relative;
        /*border:1px solid red;*/
    }

    .has-error .input-group-addon {
        border-color: red;
    }

    .has-error .form-control {
        border-color: red;
        border-left: 1px solid red;
    }

    .has-error small.help-block, small.help-block {
        position: absolute;
        top: 30px;
        left: 0;
        right: 0;
        color: red;
    }

    .tab-pane ul.dropdown-menu {
        position: absolute;
        background: #fff;
        left: 0;
        z-index: 99999;
        border: 1px solid #ccc;
        min-width: 50px;
    }

    .layui-input-inline {
        width: 100%;
    }

    .history {
        border-top: 1px solid #b1b1b1;
        border-bottom: none !important;
    }

    .no-back {
        background: none;
        border: 0;
    }

    .dropdown-menu {
        max-height: 250px;
        overflow-y: auto;
    }

    .dropdown-menu li a img {
        width: 20px;
        margin-right: 10px;
    }

    .dropdown-toggle .title img {
        width: 20px;
        margin-right: 5px;
    }

    .dropdown-toggle {
        text-align: left;
    }

    .caret {
        float: right;
        margin-top: 8px;
    }

    /* 设置滚动条的样式 */
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    /* 滚动槽 */
    ::-webkit-scrollbar-track {
        /*  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);*/
        background-color: #f2f4f8;
    }

    ::-webkit-scrollbar-button {
        width: 12px;
        height: 0px;
        background-color: rgba(50, 50, 50, 0.05);
    }

    /* 滚动条滑块 */
    ::-webkit-scrollbar-thumb {
        background-color: rgba(50, 50, 50, 0.25);
        border: 2px solid transparent;
        border-radius: 10px;
        background-clip: padding-box;
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: #999;
    }

    ::-webkit-scrollbar-thumb:window-inactive {
        background: #fff;

    }

    .checkbox-state {
        margin-top: 10px;
    }

    .checkbox-state:hover {
        background: #d0a8de;
        transition: .5s;
        cursor: pointer;
    }

    .checkbox-state:hover label {
        color: #ffffff;
        transition: .5s;
    }

    .un-state:hover label {
        color: #777a80;
    }

    .radio-transparent {
        padding: 0;
        padding-left: 10px;
        padding-top: 9px;
    }

    .input-line-main {
        display: flex;
        display: -webkit-flex;
        display: -webkit-box;
    }

    .input-line-list {
        margin-left: 5px;
        flex: 1;
        -webkit-flex: 1;
        -webkit-box-flex: 1;
    }

    .input-line-list .input-group {
        margin: 5px 0 !important;
    }

    .un_checked span, .un_checked .edit-status, .un_checked select, .un_checked input {
        background: #eeeeee;
        cursor: not-allowed;
    }

    .click_checked span, .click_checked .edit-status, .click_checked select, .click_checked input {
        background: #c4eeb7 !important;
    }

    .bootstrap-select button {
        max-width: 130px;
    }

    .btn-default:hover, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default {
        background: transparent;
        border-radius: 0;
        /*border: 1px solid #ccc;*/
        border-color: #cccccc;
        border-left: 0;
    }

    .bootstrap-select button {
        outline: none !important;
    }

    .btn-default {
        border-radius: 0;
        border-color: #cccccc;
        /*border: 1px solid #ccc !important;*/
        border-left: 0;
    }

    .btn_box .btn-default {
        border: 1px solid #cccccc;
        border-radius: 3px;
    }
</style>
<div class="editorder">
    <div class="panel-body" style="padding-bottom: 80px;">
        <!-- Nav tabs -->
        <ul class="nav nav-tabs">
            <li class="active" data-action="0">
                <a href="#home1" data-toggle="tab" aria-expanded="true">客资基本信息</a>
            </li>
            <li class="" data-action="0">
                <a href="#profile1" data-toggle="tab" aria-expanded="false">邀约环节</a>
            </li>
            <li class="" data-action="0">
                <a href="#store" data-toggle="tab" aria-expanded="false">门店环节</a>
            </li>
            <li class="" data-action="1">
                <a href="#messages1" data-toggle="tab" aria-expanded="false">操作日志</a>
            </li>
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
            <div class="tab-pane fade  active in" id="home1">
                <form class="form-horizontal" role="form" id="res_form">
                    <div class="input-group col-md-12 col-sm-12  col-xs-12" style="border-bottom: 1px solid #d4d4d4;">
                        <h4 style="margin: 0;line-height: 25px;">
                            <!--<img src="{$data.channel_path_text}" style="height: 25px;">-->
                            <span>{$data.name_z}</span>
                            {eq name="data.gender_z" value="0" }<i class="fa fa-venus" aria-hidden="true"></i>{/eq}
                            {eq name="data.gender_z" value="1" }<i class="fa fa-mars" aria-hidden="true"></i>{/eq}
                            {eq name="data.gender_z" value="2" }<i class="fa fa-question-circle-o"
                                                                   aria-hidden="true"></i>{/eq}
                            <b>{$data.phone_z}</b>
                            {eq name="data.urgent" value="1"}<i class="fa fa-flash" aria-hidden="true"></i>{/eq}
                            <label style="float: right;font-size: 10px;font-weight: normal;margin-top: 5px;">
                                <span>编号：{$data.id}</span>&emsp;
                                <span>录入时间：{$data.jdtime}</span>
                            </label>
                        </h4>
                    </div>
                    <input type="hidden" name="id" id="orderid" value="{$data.id}">
                    <div class="col-xs-12" style="height: 15px;margin-top: 5px;">
                        <span style="color: #b824e6;background-color: #fff;">主要联系人</span>
                        <div style="width: 100%;margin-top: -8px;border-top: 1px solid #b824e6;"></div>
                    </div>
                    <div class="col-xs-12">
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control no-bor-right" name="name_z" value="{$data.name_z}"
                                   placeholder="主要联系人">
                            <div class="input-group-addon" style="padding: 6px;">
                                <div class="btn-group">
                                    <button type="button" class="dropdown-toggle no-back" data-toggle="dropdown"
                                            style="border-left: 0;">
                                        <span class="title">
                                            {eq name="data.gender_z" value="0" }<i class="fa fa-venus"
                                                                                   aria-hidden="true"></i>{/eq}
                                            {eq name="data.gender_z" value="1" }<i class="fa fa-mars"
                                                                                   aria-hidden="true"></i>{/eq}
                                            {eq name="data.gender_z" value="2" }<i class="fa fa-question-circle-o"
                                                                                   aria-hidden="true"></i>{/eq}
                                        </span>
                                        <input type="hidden" name="gender_z" value="{$data.gender_z}">
                                    </button>
                                    <ul class="dropdown-menu sex" role="menu">
                                        <li><a href="javascript:;" id="0"><i class="fa fa-venus" aria-hidden="true"></i></a>
                                        </li>
                                        <li><a href="javascript:;" id="1"><i class="fa fa-mars" aria-hidden="true"></i></a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control no-bor-right no-bor-left" name="phone_z"
                                   value="{$data.phone_z}" placeholder="主要联系人电话">
                            <div class="input-group-addon"><i class="fa fa-phone" aria-hidden="true"></i></div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control  no-bor-right no-bor-left" name="wechat"
                                   value="{$data.wechat}" placeholder="主要联系人微信">
                            <div class="input-group-addon">
                                <div class="btn-group">
                                    <button type="button"  class="dropdown-toggle no-back" data-toggle="dropdown" style="border-left: 0;">
                                    <span class="title">
                                        {eq name="data.jwxtype" value="0" }<i class="fa fa-wechat" aria-hidden="true" style="color: red;"> 未加</i>{/eq}
                                        {eq name="data.jwxtype" value="1" }<i class="fa fa-wechat" aria-hidden="true"> 已加</i>{/eq}
                                    </span>
                                        <input type="hidden" name="jwxtype" value="{$data.jwxtype}">
                                    </button>
                                    <ul class="dropdown-menu sex" role="menu">
                                        <li><a href="javascript:;" id="0"><i class="fa fa-wechat" aria-hidden="true" style="color: red;"> 未加</i></a></li>
                                        <li><a href="javascript:;" id="1"><i class="fa fa-wechat" aria-hidden="true"> 已加</i></a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control  no-bor-right no-bor-left" name="qq"
                                   value="{$data.qq}" placeholder="主要联系人QQ">
                            <div class="input-group-addon"><i class="fa fa-qq" aria-hidden="true"></i></div>
                        </div>
                    </div>
                    <!---->
                    <div class="col-xs-12" style="height: 15px;margin-top: 5px;">
                        <div class="col-xs-5">
                            <span style="color: #54a1e6;background-color: #fff;">备用联系人</span>
                            <div style="width: 100%;margin-top: -8px;border-top: 1px solid #54a1e6;"></div>
                        </div>
                        <div class="col-xs-5" style="margin-left: 60px;">
                            <span style="color: #4ec3cc;background-color: #fff;">宝宝信息</span>
                            <div style="width: 100%;margin-top: -8px;border-top: 1px solid #4ec3cc;"></div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control  no-bor-right" name="name_f" value="{$data.name_f}"
                                   placeholder="备用联系人">
                            <div class="input-group-addon" style="padding: 6px;">
                                <div class="btn-group">
                                    <button type="button" class="dropdown-toggle no-back" data-toggle="dropdown"
                                            style="border-left: 0;">
                                        <span class="title">
                                            {eq name="data.gender_f" value="0" }<i class="fa fa-venus"
                                                                                   aria-hidden="true"></i>{/eq}
                                            {eq name="data.gender_f" value="1" }<i class="fa fa-mars"
                                                                                   aria-hidden="true"></i>{/eq}
                                            {eq name="data.gender_f" value="2" }<i class="fa fa-question-circle-o"
                                                                                   aria-hidden="true"></i>{/eq}
                                        </span>
                                        <input type="hidden" name="gender_f" value="{$data.gender_f}">
                                    </button>
                                    <ul class="dropdown-menu sex" role="menu">
                                        <li><a href="javascript:;" id="0"><i class="fa fa-venus" aria-hidden="true"></i></a>
                                        </li>
                                        <li><a href="javascript:;" id="1"><i class="fa fa-mars" aria-hidden="true"></i></a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control no-bor-right no-bor-left" name="phone_f"
                                   value="{$data.phone_f}" placeholder="备用电话">
                            <div class="input-group-addon"><i class="fa fa-phone" aria-hidden="true"></i></div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control no-bor-right" name="bbname" value="{$data.bbname}"
                                   placeholder="宝宝姓名">
                            <div class="input-group-addon" style="padding: 6px;">
                                <div class="btn-group">
                                    <button type="button" class="dropdown-toggle no-back" data-toggle="dropdown"
                                            style="border-left: 0;">
                                        <span class="title">
                                            {eq name="data.gender_b" value="0" }<i class="fa fa-venus"
                                                                                   aria-hidden="true"></i>{/eq}
                                            {eq name="data.gender_b" value="1" }<i class="fa fa-mars"
                                                                                   aria-hidden="true"></i>{/eq}
                                            {eq name="data.gender_b" value="2" }<i class="fa fa-question-circle-o"
                                                                                   aria-hidden="true"></i>{/eq}
                                        </span>
                                        <input type="hidden" name="gender_b" value="{$data.gender_b}">
                                    </button>
                                    <ul class="dropdown-menu sex" role="menu">
                                        <li><a href="javascript:;" id="0"><i class="fa fa-venus" aria-hidden="true"></i></a>
                                        </li>
                                        <li><a href="javascript:;" id="1"><i class="fa fa-mars" aria-hidden="true"></i></a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control no-bor-right no-bor-left" name="bbcstime" id="date2"
                                   value="{$data.bbcstime}" placeholder="出生日期">
                            <div class="input-group-addon"><i class="fa fa-birthday-cake" aria-hidden="true"></i></div>
                        </div>
                    </div>
                    <!---->

                    {eq name="data.addtype" value="2" }
                    <div class="col-xs-12" style="height: 15px;margin-top: 5px;">
                        <span style="color: #888;background-color: #fff;">推荐联系人</span>
                        <div style="width: 100%;margin-top: -8px;border-top: 1px solid #ccc;"></div>
                    </div>
                    <div class="col-xs-12">
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control no-bor-right" name="rec_user"
                                   value="{$data.rec_user}" placeholder="推荐联系人">
                            <div class="input-group-addon" style="padding: 6px;">
                                <div class="btn-group">
                                    <button type="button" class="dropdown-toggle no-back" data-toggle="dropdown"
                                            style="border-left: 0;">
                                        <span class="title">
                                            {eq name="data.rec_gender" value="0" }<i class="fa fa-venus"
                                                                                     aria-hidden="true"></i>{/eq}
                                            {eq name="data.rec_gender" value="1" }<i class="fa fa-mars"
                                                                                     aria-hidden="true"></i>{/eq}
                                            {eq name="data.rec_gender" value="2" }<i class="fa fa-question-circle-o"
                                                                                     aria-hidden="true"></i>{/eq}
                                        </span>
                                        <input type="hidden" name="rec_gender" value="{$data.rec_gender}">
                                    </button>
                                    <ul class="dropdown-menu sex" role="menu">
                                        <li><a href="javascript:;" id="0"><i class="fa fa-venus" aria-hidden="true"></i></a>
                                        </li>
                                        <li><a href="javascript:;" id="1"><i class="fa fa-mars" aria-hidden="true"></i></a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control no-bor-right no-bor-left" {neq name='data.rec_phone'
                                   value='' } disabled {/neq} name="rec_phone" value="{$data.rec_phone}"
                            placeholder="推荐电话">
                            <div class="input-group-addon"><i class="fa fa-phone" aria-hidden="true"></i></div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control  no-bor-right no-bor-left" {neq
                                   name='data.rec_wechat' value='' } disabled {/neq} name="rec_wechat"
                            value="{$data.rec_wechat}" placeholder="推荐微信">
                            <div class="input-group-addon"><i class="fa fa-wechat" aria-hidden="true"></i></div>
                        </div>
                        <div class="input-group form-group col-md-3 col-xs-3">
                            <input type="text" class="form-control  no-bor-right no-bor-left" {neq name='data.rec_qq'
                                   value='' } disabled {/neq} name="rec_qq" value="{$data.rec_qq}" placeholder="推荐QQ">
                            <div class="input-group-addon"><i class="fa fa-qq" aria-hidden="true"></i></div>
                        </div>
                    </div>
                    {/eq}
                    <div class="col-xs-12" style="height: 15px;margin-top: 5px;">
                        <span style="color: #5db95d;background-color: #fff;">其他信息</span>
                        <div style="width: 100%;margin-top: -8px;border-top: 1px solid #5db95d;"></div>
                    </div>
                    <div class="col-xs-12">
                        <div class="col-md-4  col-xs-4">
                            <div class="input-group form-group col-md-5  col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                <span type="button" class="dropdown-toggle form-control"
                                      style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                    建单:
                                </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7 col-xs-7">
                                <div class="btn-group">
                                <span type="button" class="dropdown-toggle form-control"
                                      style="padding-left: 8px;border-left: 0;padding: 0;text-align: left;line-height: 32px;">
                                    {eq name="data.jdry" value=""}
                                        建单人员
                                    {else/}
                                        {$data.jdry_text}
                                    {/eq}
                                </span>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4  col-xs-4" style="margin-left: -3px;">
                            <div class="input-group form-group col-md-5  col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                    <span type="button" class="dropdown-toggle form-control"
                                          style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        邀约组:
                                    </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7 col-xs-7">
                                <div class="btn-group">
                                    <select {neq name='data.yykf_group' value='' } disabled {/neq} class="select_all
                                    invitgroup dropdown-toggle form-control" name="yykf_group" style="border-left:
                                    0;border-right: 0 !important;" id="group">
                                    <option value="0">未分配邀约</option>
                                    {volist name="yykf_group" id="info"}
                                    <option value="{$info.id}" {eq name="data.yykf_group" value="$info.id" }
                                            selected="selected" {
                                    /eq} >{$info.name}</option>
                                    {/volist}
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4  col-xs-4" style="margin-left: -2px;">
                            <div class="input-group form-group col-md-5  col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                    <span type="button" class="dropdown-toggle form-control"
                                          style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        邀约人:
                                    </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7  col-xs-7">
                                <div class="btn-group">
                                    <select {neq name='data.yykf' value='' } disabled {/neq} class="select_all
                                    dropdown-toggle form-control" name="yykf" id="invit1" style="border-left: 0;">
                                    {eq name="data.yykf" value="" }
                                    <option>未分配邀约</option>
                                    {else/}
                                    <option value="{$data.yykf}">{$data.yykf_text}</option>
                                    {/eq}
                                    </select>
                                </div>
                            </div>
                        </div>
                        <!---->
                    </div>
                    <div class="col-xs-12">
                        <div class="col-md-4  col-xs-4">
                            <div class="input-group form-group col-md-5  col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                <span type="button" class="dropdown-toggle form-control"
                                      style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                    渠道：
                                </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7  col-xs-7">
                                <div class="btn-group">
                                    <select id="channels" name="channel" class="selectpicker" data-live-search="true"
                                            data-size="8" style="border-left: 0;" title="请选择渠道">
                                        {volist name='channel' id='va'}
                                        <option class="select-li" {eq name="va.id" value="$data.channel"
                                                }selected="selected" {
                                        /eq} value="{$va.id}" title="<img src='{$va.path}' width='20px' height='20px'>&nbsp;{$va.title}"
                                        data-content="<img src='{$va.path}' width='20px' height='20px'>{$va.title}">{$va.title}</option>
                                        {/volist}
                                    </select>
                                    <!--<button type="button" {neq name='data.channel' value=''} disabled {/neq} class="dropdown-toggle form-control" data-toggle="dropdown" style="border-left: 0;border-right: 0 !important;">-->
                                    <!--<span class="title qudao-style">-->
                                    <!--{eq name="data.channel" value=""}-->
                                    <!--渠道-->
                                    <!--{else/}-->
                                    <!--<img src="{$data.channel_path_text}">-->
                                    <!--{$data.channel_text}-->
                                    <!--{/eq}-->
                                    <!--</span>-->
                                    <!--<span class="caret"></span>-->
                                    <!--<input type="hidden" name="channel" value="{$data.channel}" id="channels">-->
                                    <!--</button>-->
                                    <!--<ul class="dropdown-menu cheannele" role="menu">-->
                                    <!--{volist name='channel' id='va' }-->
                                    <!--<li><a href="javascript:;" id="{$va.id}"><img src="{$va.path}">{$va.title}</a></li>-->
                                    <!--{/volist}-->
                                    <!--</ul>-->
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4  col-xs-4" style="margin-left: -3px;">
                            <div class="input-group form-group col-md-5  col-xs-5">
                                <div class="btn-group" style="line-height: 20px;">
                                <span type="button" class="dropdown-toggle form-control"
                                      style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                    来源：
                                </span>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-7 col-xs-7">
                                <div class="btn-group">
                                    <select name="source" {neq name='data.source' value='' } disabled {/neq}
                                    id="source0" class="form-control" style="border-left: 0;">
                                    {eq name="data.source" value=""}
                                    <option value="0">来源</option>
                                    {else/}
                                    <option value="{$data.source}">{$data.source_text}</option>
                                    {/eq}
                                    </select>
                                </div>
                            </div>
                            <div class="col-md-4  col-xs-4" style="display: none;margin-left: -1px;" id="banjishow">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group">
                                <span type="button" disabled class="dropdown-toggle form-control"
                                      style="border-right: 0;text-align: center;margin-left: -2px">
                                    班级：
                                </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <select name="banji" disabled id="banji" class="form-control"
                                                style="border-left: 0;margin-left: -2px;">
                                            <option value="0">班级</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-4" style="margin-left: -1px;display: none;" id="shangkeriqi">
                                <div class="input-group form-group col-md-6  col-xs-6">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span type="button" disabled class="dropdown-toggle form-control"
                                          style="border-right: 0 !important;text-align: center;">
                                        上课日期：
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-6 col-xs-6">
                                    <div class="btn-group">
                                        <select name="xingqi" id="xingqiri" disabled class="form-control" style="border-left: 0;margin-left: -2px;">
                                            <option value="0" >请选择星期</option>
                                            {volist name='xingqi' id='vo'}
                                            <option value="{$vo}" {if condition="$data['xingqi']== $vo"} selected="selected" {else}{/if}>{$vo}</option>
                                            {/volist}
                                        </select>
                                    </div>
                                </div>

                                <div class="col-md-4 col-xs-4" style="margin-left: -1px;display: none;" id="xingqi">
                                    <div class="input-group form-group col-md-6  col-xs-6">
                                        <div class="btn-group" style="line-height: 20px;">
                                    <span type="button" disabled class="dropdown-toggle form-control"
                                          style="border-right: 0 !important;text-align: center;">
                                        上课时间段：
                                    </span>
                                        </div>
                                    </div>
                                    <div class="input-group form-group col-md-6 col-xs-6">
                                        <input type="text" disabled
                                               class="layui-input form-control no-bor-right no-bor-left" id="date15"
                                               name="shijianduan" value="{$data.shijianduan}" placeholder="上课时间段"
                                               style="border-right: 1px solid #ccc;">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4  col-xs-4" style="margin-left: -1px;">
                                <div class="input-group form-group col-md-5  col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                <span type="button" class="dropdown-toggle form-control"
                                      style="border-right: 0;border-left: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                    活动：
                                </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7  col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control"
                                                data-toggle="dropdown"
                                                style="border-left: 0 !important;">
                                    <span class="title">
                                            {eq name="data.activity" value=""}
                                                未填写
                                            {else/}
                                                {$data.activity_text}
                                            {/eq}
                                        </span>
                                            <span class="caret"></span>
                                            <input type="hidden" name="activity" value="{$data.activity}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;">未填写</a></li>
                                            {volist name='activity' id='info' }
                                            <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <!---->

                        </div>
                        <div class="col-xs-12">
                            <div class="col-md-4  col-xs-4">
                                <div class="input-group form-group col-md-5  col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                <span type="button" class="dropdown-toggle form-control"
                                      style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                    拍摄类型：
                                </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7  col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control"
                                                data-toggle="dropdown" style="border-left: 0;">
                                    <span class="title">
                                            {eq name="data.leibie" value=""}
                                                未填写
                                            {else/}
                                                {$data.leibie_text}
                                            {/eq}
                                        </span> <span class="caret"></span>
                                            <input type="hidden" name="leibie" value="{$data.leibie}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;">未填写</a></li>
                                            {volist name='leibie' id='info'}
                                            <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4  col-xs-4" style="margin-left: -3px;">
                                <div class="input-group form-group col-md-5  col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span type="button" class="dropdown-toggle form-control"
                                          style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                        意向度：
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7  col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control"
                                                data-toggle="dropdown" style="border-left: 0;">
                                    <span class="title">
                                        {eq name="data.intention" value=""}
                                            未填写
                                        {else/}
                                            {$data.intention_text}
                                        {/eq}
                                        </span> <span class="caret"></span>
                                            <input type="hidden" name="intention" value="{$data.intention}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;">未填写</a></li>
                                            {volist name='yixiang' id='info'}
                                            <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4  col-xs-4" style="margin-left: -2px;">
                                <div class="input-group form-group col-md-5  col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                <span type="button" class="dropdown-toggle form-control"
                                      style="border-right: 0 !important;padding: 0;text-align: center;line-height: 32px;">
                                    预算：
                                </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7  col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control"
                                                data-toggle="dropdown" style="border-left: 0;">
                                    <span class="title">
                                            {eq name="$data.budget" value=""}
                                                未填写
                                            {else/}
                                                {$data.budget_text}
                                            {/eq}
                                        </span> <span class="caret"></span>
                                            <input type="hidden" name="budget" value="{$data.budget}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;">未填写</a></li>
                                            {volist name='yusuan' id='info'}
                                            <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="col-xs-12">
                            <div class="col-md-6  col-xs-6" style="margin-left: -1px;">
                                <div class="input-group form-group col-md-5  col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                                    <span type="button" class="dropdown-toggle form-control"
                                          style="border-right: 0 !important;text-align: center;">
                                        拍摄方式：
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control"
                                                data-toggle="dropdown" style="border-left: 0;">
                                        <span class="title">
                                            {eq name="data.shot_mode" value=""}
                                                店内拍摄
                                            {else/}
                                                {$data.shot_mode_text}
                                            {/eq}
                                            </span> <span class="caret"></span>
                                            <input type="hidden" name="shot_mode" value="{$data.shot_mode}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            {volist name='shotmode' id='info'}
                                            <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6  col-xs-6" style="margin-left: -1px;">
                                <div class="input-group form-group col-md-5 col-xs-5">
                                    <div class="btn-group" style="line-height: 20px;">
                            <span type="button" class="dropdown-toggle form-control"
                                  style="border-right: 0 !important;text-align: center;">
                                预计拍摄时间：
                            </span>
                                    </div>
                                </div>
                                <div class="input-group form-group col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control"
                                                data-toggle="dropdown" style="border-left: 0;">
                                <span class="title">
                                    {eq name="data.shot_time" value=""}
                                        未填写
                                    {else/}
                                        {$data.shot_time_text}
                                    {/eq}
                                </span> <span class="caret"></span>
                                            <input type="hidden" name="shot_time" value="{$data.shot_time}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;">未填写</a></li>
                                            {volist name='stimate' id='info'}
                                            <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!---->
                        <!--<div class="col-xs-12">
                            <div class="input-group form-group col-md-4 col-xs-4">
                                <div class="col-md-5 col-xs-5" style="padding-left: 0;padding-right: 0;">
                                    <button type="button" class="dropdown-toggle form-control" data-toggle="dropdown" style="border-right: 0 !important;">
                                        <span class="title">地址</span> <i class="fa fa-map-marker"></i>
                                    </button>
                                </div>
                                <div class="col-md-7 col-xs-7">
                                    <div class="btn-group">
                                        <button type="button" class="dropdown-toggle form-control" data-toggle="dropdown" style="border-right: 0 !important;">
                                            <span class="title">
                                                {eq name="province" value=""}
                                                    省份
                                                {else/}
                                                    {$data.province_text}
                                                {/eq}
                                            </span> <span class="caret"></span>
                                            <input type="hidden" name="province" value="{$data.province}">
                                        </button>
                                        <ul class="dropdown-menu dropdown-select" role="menu">
                                            <li><a href="javascript:;" id="1">A类</a></li>
                                            <li><a href="javascript:;" id="2">B类</a></li>
                                            <li><a href="javascript:;" id="3">C类</a></li>
                                            <li><a href="javascript:;" id="4">D类</a></li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-2 col-xs-2">
                                <div class="btn-group">
                                    <button type="button" class="dropdown-toggle form-control" data-toggle="dropdown" style="border-right: 0 !important;">
                                        <span class="title">
                                            {eq name="city" value=""}
                                                    城市
                                            {else/}
                                                {$data.city_text}
                                            {/eq}
                                        </span>
                                        <span class="caret"></span>
                                        <input type="hidden" name="city" value="{$data.city}">
                                    </button>
                                    <ul class="dropdown-menu dropdown-select" role="menu">
                                        <li><a href="javascript:;" id="1">婚纱照</a></li>
                                        <li><a href="javascript:;" id="2">艺术照</a></li>
                                        <li><a href="javascript:;" id="3">母婴照</a></li>
                                        <li><a href="javascript:;" id="4">亲子照</a></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-2 col-xs-2">
                                <div class="btn-group">
                                    <button type="button" class="dropdown-toggle form-control" data-toggle="dropdown" >
                                        <span class="title">
                                            {eq name="city" value=""}
                                                    区县
                                            {else/}
                                                {$data.city_text}
                                            {/eq}
                                        </span>  <span class="caret"></span>
                                        <input type="hidden" name="county" value="{$data.county}">
                                    </button>
                                    <ul class="dropdown-menu" role="menu">
                                        <li><a href="javascript:;" id="1">婚纱照</a></li>
                                        <li><a href="javascript:;" id="2">艺术照</a></li>
                                        <li><a href="javascript:;" id="3">母婴照</a></li>
                                        <li><a href="javascript:;" id="4">亲子照</a></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-4 col-xs-4">
                                <div class="layui-input-inline">
                                    <input type="text" class="form-control no-bor-left" value="{$data.address}"
                                           placeholder="详细地址" name="address"  >
                                </div>
                            </div>
                        </div>-->
                        <!---->
                        <div class="col-xs-12">
                            <div class="input-group form-group col-md-1 col-xs-1">
                                <div class="btn-group">
                                    <button type="button" class="dropdown-toggle form-control" style="height: 200px;">
                                        推广备注
                                    </button>
                                </div>
                            </div>
                            <div class="input-group form-group col-md-11 col-xs-11">
                                <div class="btn-group">
                                    <textarea name="qdbz" placeholder="请输入推广备注" pa
                                              style="height: 200px;width: 100%;resize: none;padding:10px;outline: none;"
                                              class="no-bor-left">{$data.qdbz}</textarea>
                                </div>
                            </div>
                        </div>
                        <!---->
                </form>
            </div>
            <div class="tab-pane fade" id="profile1">
                <form id="invitationform">
                    <input type="hidden" name="id" value="{$data.id}">
                    {volist name='state' id='info'}
                    {eq name="info.id" value="5"}
                    <div class="col-md-12 col-xs-12">
                        <div class="col-md-3 col-xs-3" style="border: 1px solid #c7c7c7;border-right: 0;">
                            <div class="radio radio-transparent" style="padding-top: 9px;margin: 0;">
                                <input type="radio" name="state" id="edit-status1" class="radio_lable" {eq
                                       name="$data.state" value="5" } checked {/eq} value="{$info.id}" >
                                <label for="edit-status1">下次跟踪</label>
                            </div>
                        </div>
                        <div class="col-md-4 col-xs-4 cent" style="padding: 0">
                            <div class="btn-group">
                                <button type="button" {neq name="$data.state" value="5" } disabled {
                                /neq} class="dropdown-toggle form-control no-bor-radius" data-toggle="dropdown"
                                style="border-right: 0 !important;">
                                <span class="title">
                                        {eq name="$data.state" value="5" }
                                        {$data.track_text}
                                        {else/}
                                        下次跟踪原因
                                        {/eq}
                                    </span>
                                <span class="caret"></span>
                                <input type="hidden" name="track" value="{$data.track}">
                                </button>
                                <ul class="dropdown-menu dropdown-select" role="menu">
                                    <li><a href="javascript:;" id="">未填写</a></li>
                                    {volist name="track" id="vq" }
                                    <li><a href="javascript:;" id="{$vq.id}">{$vq.title}</a></li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                        <div class="col-md-5 col-xs-5 cent" style="padding: 0">
                            <div class="btn-group">
                                <input type="text" {neq name="$data.state" value="5" } disabled {else/}
                                value="{$data.zztime|date="Y-m-d H:i",###}" {/neq} class="form-control no-bor-radius"
                                name="zztime" id="date6" placeholder="下次追踪时间">
                            </div>
                        </div>
                    </div>
                    {/eq}
                    {eq name="info.id" value="3"}
                    <div class="col-md-12 col-xs-12">
                        <div class="col-md-3 col-xs-3" style="border: 1px solid #c7c7c7;border-right: 0;">
                            <div class="radio radio-transparent" style="padding-top: 9px;margin: 0;">
                                <input type="radio" name="state" id="edit-status2" class="radio_lable" {eq
                                       name="$data.state" value="3" } checked {/eq} value="{$info.id}" >
                                <label for="edit-status2">邀约进店</label>
                            </div>
                        </div>
                        <div class="cent">
                            <div>
                                <input type="hidden" name="instore" value="1">
                            </div>
                        </div>
                        <div class="col-md-3 col-xs-3 cent" style="padding: 0">
                            <div class="btn-group">
                                <button type="button" {neq name="$data.state" value="3" } disabled {
                                /neq} class="dropdown-toggle form-control no-bor-radius" data-toggle="dropdown"
                                style="border-right: 0 !important;">
                                <span class="title">
                                        {eq name="$data.state" value="3" }
                                        {$data.mendian_text}
                                        {else/}
                                        选择门店
                                        {/eq}
                                    </span>
                                <span class="caret"></span>
                                <input type="hidden" name="mendian" value="{$data.mendian}">
                                </button>
                                <ul class="dropdown-menu dropdown-select" role="menu">
                                    <li><a href="javascript:;" id="">未填写</a></li>
                                    {volist name="store" id="info"}
                                    <li><a href="javascript:;" id="{$info.id}">{$info.name}</a></li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                        <div class="col-md-3  col-xs-3">
                            <div class="col-md-4  col-xs-4 cent">
                                <div class="btn-group" style="line-height: 20px;">
                                    <button type="button" {neq name="$data.state" value="3" } disabled {
                                    /neq} class="dropdown-toggle form-control" style="border-right: 0
                                    !important;padding: 0;text-align: center;line-height: 32px;">
                                    预算：
                                    </button>
                                </div>
                            </div>
                            <div class="col-md-8  col-xs-8 cent">
                                <div class="btn-group">
                                    <button type="button" {neq name="$data.state" value="3" } disabled {
                                    /neq} class="dropdown-toggle form-control" data-toggle="dropdown"
                                    style="border-left: 0;">
                                    <span class="title">
                                            {eq name="$data.state" value="3" }
                                                {eq name="$data.budget" value=""}
                                                    未填写
                                                {else/}
                                                    {$data.budget_text}
                                                {/eq}
                                            {else/}
                                               未填写
                                            {/eq}
                                        </span> <span class="caret"></span>
                                    <input type="hidden" name="budget" value="{$data.budget}">
                                    </button>
                                    <ul class="dropdown-menu dropdown-select" role="menu">
                                        <li><a href="javascript:;" id="">未填写</a></li>
                                        {volist name='yusuan' id='info'}
                                        <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                        {/volist}
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3 col-xs-3 cent" style="padding: 0">
                            <div class="btn-group">
                                <input type="text" class="form-control  no-bor-radius" name="yyjdtime"
                                       {neq name="$data.state" value="3" } disabled {else/}
                                value="{$data.yyjdtime|date="Y-m-d H:i:s",###}" {/neq} placeholder="预约时间" id="date5">
                            </div>
                        </div>
                        <!--<div  class="col-md-2 col-xs-2 cent" style="padding: 0">-->
                        <!--<div class="btn-group">-->
                        <!--<button type="button" disabled class="dropdown-toggle form-control no-bor-radius"-->
                        <!--style="background-color: #25b3f6;border: 1px solid #25b3f6 !important;color: #fff;">-->
                        <!--发送消息-->
                        <!--</button>-->
                        <!--</div>-->
                        <!--</div>-->
                    </div>
                    {/eq}
                    {eq name="info.id" value="6"}
                    <div class="col-md-12 col-xs-12" style="margin-top: 20px;">
                        <div class="col-md-3 col-xs-3" style="border: 1px solid #c7c7c7;border-right: 0;">
                            <div class="radio radio-transparent" style="padding-top: 9px;margin: 0;">
                                <input type="radio" name="state" {eq name="$data.state" value="6" } checked {/eq}
                                id="edit-status3" class="radio_lable" value="{$info.id}" >
                                <label for="edit-status3">无需追踪</label>
                            </div>
                        </div>
                        <div class="col-md-9 col-xs-9 cent" style="padding: 0">
                            <div class="btn-group">
                                <button type="button" {neq name="$data.state" value="6" } disabled {
                                /neq} class="dropdown-toggle form-control no-bor-radius" data-toggle="dropdown" >
                                <span class="title">
                                        {eq name="$data.state" value="6"}
                                            {eq name="$data.tracking" value=""}
                                                无需追踪原因
                                            {else/}
                                                {$data.tracking_text}
                                            {/eq}
                                        {else/}
                                            无需追踪原因
                                        {/eq}
                                    </span>
                                <span class="caret"></span>
                                <input type="hidden" name="tracking" value="{$data.tracking}">
                                </button>
                                <ul class="dropdown-menu dropdown-select" role="menu">
                                    <li><a href="javascript:;" id="">未填写</a></li>
                                    {volist name="tracking" id="vc"}
                                    <li><a href="javascript:;" id="{$vc.id}">{$vc.title}</a></li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                    </div>
                    {/eq}
                    {eq name="info.id" value="4"}
                    <div class="col-md-12 col-xs-12" style="margin-top: 20px;">
                        <div class="col-md-3 col-xs-3" style="border: 1px solid #c7c7c7;border-right: 0;">
                            <div class="radio radio-transparent" style="padding-top: 9px;margin: 0;">
                                <input type="radio" name="state" id="edit-status4" {eq name="$data.state" value="4" }
                                       checked {/eq} class="radio_lable" value="{$info.id}" >
                                <label for="edit-status4">免费体验</label>
                            </div>
                        </div>
                        <div class="col-md-4 col-xs-4 cent" style="padding: 0">
                            <div class="btn-group">
                                <button type="button" {neq name="$data.state" value="4" } disabled {
                                /neq} class="dropdown-toggle form-control no-bor-radius" data-toggle="dropdown"
                                style="border-right: 0 !important;">
                                <span class="title">
                                        {eq name="$data.state" value="4"}
                                            {eq name="$data.mendian" value=""}
                                                选择调度
                                            {else/}
                                                {$data.mendian_text}
                                            {/eq}
                                        {else/}
                                            选择调度
                                        {/eq}
                                    </span>
                                <span class="caret"></span>
                                <input type="hidden" name="mendian" value="{$data.mendian}">
                                </button>
                                <ul class="dropdown-menu dropdown-select" role="menu">
                                    <li><a href="javascript:;" id="">未填写</a></li>
                                    {volist name="store" id="vo"}
                                    <li><a href="javascript:;" id="{$vo.id}">{$vo.name}</a></li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                        <div class="form-group col-md-2  col-xs-2  cent">
                            <div class="btn-group">
                                <button type="button" {neq name="$data.state" value="4" } disabled {
                                /neq} class="dropdown-toggle form-control" name="advertisement"
                                style="border-right: 0;;padding: 0;text-align: center;">
                                拍摄时间：
                                </button>
                            </div>
                        </div>
                        <div class="col-md-3 col-xs-3 cent" style="padding: 0">
                            <div class="btn-group">
                                <input type="text" class="form-control  no-bor-radius" name="yypstime"
                                       placeholder="请选择时间" id="date7" style="border-left: 0;"
                                       {neq name="$data.state" value="4" } disabled {else/} value="{$data.yypstime |
                                date="Y-m-d H:i",###}" {/neq} >
                            </div>
                        </div>
                    </div>
                    {/eq}
                    {eq name="info.id" value="7"}
                    <div class="col-md-12 col-xs-12" style="margin-top: 20px;">
                        <div class="col-md-3 col-xs-3" style="border: 1px solid #c7c7c7;border-right: 0;">
                            <div class="radio radio-transparent" style="padding-top: 9px;margin: 0;">
                                <input type="radio" name="state" {eq name="$data.state" value="7" } checked {/eq}
                                id="edit-status5" class="radio_lable" value="{$info.id}" >
                                <label for="edit-status5">未到流失</label>
                            </div>
                        </div>
                        <div class="col-md-9 col-xs-9 cent" style="padding: 0">
                            <div class="btn-group">
                                <button type="button" {neq name="$data.state" value="7" } disabled {
                                /neq} class="dropdown-toggle form-control no-bor-radius" data-toggle="dropdown"
                                style="border-right: 0 !important;">
                                <span class="title">

                                        {eq name="$data.state" value="7"}
                                            {eq name="$data.nostore" value=""}
                                                未到流失原因
                                            {else/}
                                                {$data.nostore_text}
                                            {/eq}
                                        {else/}
                                            未到流失原因
                                        {/eq}
                                    </span>
                                <span class="caret"></span>
                                <input type="hidden" name="nostore" value="{$data.nostore}">
                                </button>
                                <ul class="dropdown-menu dropdown-select" role="menu">
                                    <li><a href="javascript:;" id="">未填写</a></li>
                                    {volist name="nostore" id="vo"}
                                    <li><a href="javascript:;" id="{$vo.id}">{$vo.title}</a></li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                    </div>
                    {/eq}
                    {eq name="info.id" value="11"}
                    <div class="col-md-12 col-xs-12" style="margin-top: 20px;">
                        <div class="col-md-3 col-xs-3" style="border: 1px solid #c7c7c7;border-right: 0;">
                            <div class="radio radio-transparent" style="padding-top: 0px;margin: 0;">
                                <input type="radio" name="state" {eq name="$data.state" value="11" } checked {/eq}
                                id="edit-status11" class="radio_lable" value="{$info.id}" >
                                <label for="edit-status11" style="margin-top: 9px;">线上成交</label>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-3  col-xs-3  cent" style="margin-top: 0px;">
                            <div class="btn-group">
                                <button type="button" {neq name="$data.state" value="11" } disabled {
                                /neq} class="dropdown-toggle form-control" data-toggle="dropdown">
                                <span class="title">
                                        {eq name="$data.state" value="11"}
                                            {eq name="$data.mendian" value=""}
                                                选择调度
                                            {else/}
                                                {$data.mendian_text}
                                            {/eq}
                                        {else/}
                                            选择调度
                                        {/eq}
                                    </span>
                                <span class="caret"></span>
                                <input type="hidden" name="mendian" value="{$data.mendian}">
                                </button>
                                <ul class="dropdown-menu dropdown-select" role="menu">
                                    <li><a href="javascript:;" id="">未填写</a></li>
                                    {volist name="store" id="info"}
                                    <li><a href="javascript:;" id="{$info.id}">{$info.name}</a></li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-3  col-xs-3 cent"
                             style="margin-top: 0px;margin-left: -1px;">
                            <div class="btn-group">
                                <button type="button" {neq name="$data.state" value="11" } disabled {
                                /neq} class="dropdown-toggle form-control" data-toggle="dropdown">
                                <span class="title">
                                        {eq name="$data.state" value="11"}
                                            {eq name="$data.payment" value=""}
                                                支付方式
                                            {else/}
                                                {$data.payment_text}
                                            {/eq}
                                        {else/}
                                            支付方式
                                        {/eq}
                                    </span>
                                <span class="caret"></span>
                                <input type="hidden" name="payment" value="{$data.payment}">
                                </button>
                                <ul class="dropdown-menu dropdown-select" role="menu">
                                    <li><a href="javascript:;" id="">未填写</a></li>
                                    {volist name="payment" id="info"}
                                    <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                        <div class="form-group col-md-3 col-xs-3 cent" style="margin-left: -1px;">
                            <div class="form-group col-md-6  col-xs-6 cent">
                                <div class="btn-group">
                                    <button type="button" {neq name="$data.state" value="11" } disabled {
                                    /neq} class="dropdown-toggle form-control" name="advertisement"
                                    style="border-right: 0 !important;padding: 0;text-align: center;">
                                    验证码：
                                    </button>
                                </div>
                            </div>
                            <div class="form-group col-md-6  col-xs-6 cent">
                                <div class="btn-group">
                                    <input type="text" name="code" {neq name="$data.state" value="11" } disabled {else/}
                                    value="{$data.code}" {/neq}
                                    class="form-control" placeholder="例:0001" style="border-left: 0 !important;">
                                </div>
                            </div>
                        </div>

                        <div class="col-md-12  col-xs-12" style="margin-top: -10px;">
                            <div class="form-group col-md-4  col-xs-4 cent">
                                <div class="form-group col-md-6  col-xs-6 cent">
                                    <div class="btn-group">
                                        <button type="button" {neq name="$data.state" value="11" } disabled {
                                        /neq} class="dropdown-toggle form-control" name="advertisement"
                                        style="border-right: 0 !important;text-align: center;">
                                        套系金额
                                        </button>
                                    </div>
                                </div>
                                <div class="col-md-6 col-xs-6 cent">
                                    <div class="btn-group">
                                        <input type="text" {neq name="$data.state" value="11" } disabled {else/}
                                        value="{$data.txje}" {/neq} class="form-control" name="txje" placeholder="￥0.00"
                                        style="border-left: 0 !important;border-right: 0;">
                                    </div>
                                </div>
                            </div>
                            <div class="form-group col-md-4  col-xs-4 cent" style="margin-left: -1px;">
                                <div class="form-group col-md-6 col-xs-6 cent">
                                    <div class="btn-group">
                                        <button type="button" {neq name="$data.state" value="11" } disabled {
                                        /neq} class="dropdown-toggle form-control" name="advertisement"
                                        style="border-right: 0 !important;text-align: center;">
                                        应收金额
                                        </button>
                                    </div>
                                </div>
                                <div class="form-group col-md-6  col-xs-6 cent">
                                    <div class="btn-group">
                                        <input type="text" {neq name="$data.state" value="11" } disabled {else/}
                                        value="{$data.ysje}" {/neq} class="form-control" name="ysje" placeholder="￥0.00"
                                        style="border-left: 0 !important;">
                                    </div>
                                </div>
                            </div>
                            <div class="form-group col-md-4  col-xs-4 cent" style="margin-left: -1px;">
                                <div class="form-group col-md-6  col-xs-6 cent">
                                    <div class="btn-group">
                                        <button type="button" {neq name="$data.state" value="11" } disabled {
                                        /neq} class="dropdown-toggle form-control" name="advertisement"
                                        style="border-right: 0 !important;padding: 0;text-align: center;">
                                        实收金额
                                        </button>
                                    </div>
                                </div>
                                <div class="col-md-6  col-xs-6 cent">
                                    <div class="btn-group">
                                        <input type="text" {neq name="$data.state" value="11" } disabled {else/}
                                        value="{$data.ssje}"{/neq} class="form-control" name="ssje" placeholder="￥0.00"
                                        style="border-left: 0 !important;">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12  col-xs-12" style="margin-top: -31px;">
                            <div class="form-group col-md-12 col-xs-12 cent">
                                <div class="form-group col-md-2  col-xs-2 cent">
                                    <div class="btn-group">
                                        <button type="button" {neq name="$data.state" value="11" } disabled {
                                        /neq} class="dropdown-toggle form-control" name="advertisement"
                                        style="border-right: 0 !important;padding: 0;text-align: center;">
                                        订单号：
                                        </button>
                                    </div>
                                </div>
                                <div class="form-group col-md-10  col-xs-10 cent">
                                    <div class="btn-group">
                                        <input type="text" name="pay_order" {neq name="$data.state" value="11" }
                                               disabled {else/} value="{$data.pay_order}" {/neq}
                                        class="form-control" placeholder="例:0001" style="border-left: 0 !important;">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    {/eq}

                    {/volist}

                    <div class="col-md-12 col-xs-12" style="margin-top: 20px;">
                        <div id="invitations" class="editor">
                        </div>
                        <textarea id="invitations-text" name="yybz" style="display: none;resize: none;outline: none;">{$data.yybz}</textarea>
                    </div>
                </form>
                <div class="col-md-12 history col-xs-12">
                    <span class="historylog" onclick="showlog(this)">历史邀约记录</span>
                    <div class="order-log-model log">
                        <div class="wrapper">
                            <div class="list">
                                <ul>
                                    {volist name='logs' id='info'}
                                    <li class="cls">
                                        <img class="log_img"
                                             src="{$vo.logimg|default='__STATIC__/admin/assets/avatars/user.jpg'}"
                                             alt="">
                                        <div class="more">
                                            <div class="cont">
                                                <label>{$info.state_text}</label>
                                                <p>{in name="info.state" value="5,6,7,8,9,10,12" }
                                                    {$info.state_text}原因：
                                                    {$info.nostore_text}
                                                    {$info.track_text}
                                                    {$info.tracking_text}
                                                    {/in}
                                                </p>
                                                <p>{in name="info.state" value="3,4,11"}
                                                    门店：{$info.mendian_text}
                                                    {/in}
                                                </p>
                                                {eq name="info.state" value="11"}
                                                支付方式：{$info.payment_text}&nbsp;，&nbsp;
                                                订单编号：{$info.pay_order}
                                                <p>套系金额：{$info.txje}&nbsp;元，</p>
                                                <p>应收金额：{$info.ysje}&nbsp;元，</p>
                                                <p>实收金额：{$info.ssje}&nbsp;元，</p>
                                                <p>预约拍摄时间：{$info.yypstime | date="Y-m-d H:i",###}</p>
                                                {/eq}
                                                {eq name="info.state" value="3"}
                                                预算：{$info.budget_text} &emsp;
                                                预约到店时间：{neq name="info.yyjdtime" value=""}{$info.yyjdtime | date="Y-m-d
                                                H:i",###}{/neq}
                                                {/eq}
                                                {eq name="info.state" value="4"}
                                                预约拍摄时间：{neq name="info.yypstime" value=""}{$info.yypstime | date="Y-m-d
                                                H:i",###}{/neq}
                                                {/eq}
                                                {eq name="info.state" value="5"}
                                                下次追踪时间：{neq name="info.zztime" value=""}{$info.zztime | date="Y-m-d
                                                H:i",###}{/neq}
                                                {/eq}
                                                {eq name="info.state" value="21"}
                                                <p>摄影师：{$info.photo_grapher_text}</p>
                                                <p>预约拍摄时间：{$info.yypstime | date="Y-m-d H:i",###}</p>
                                                <p>预约拍摄地址：{$info.waipai_address}</p>
                                                {/eq}
                                                <p>邀约备注：{$info.yybz}</p>
                                            </div>
                                            <div class="date">
                                                <span>操作人：<i
                                                        style="color:#d95223;">{$info.personnel_text}</i>&emsp;</span>
                                                <span>操作时间：<i
                                                        style="color:#d95223;">{$info.time|date='Y-m-d H:i:s',###}</i>&emsp;</span>
                                                <span>【PC端操作】</span>
                                            </div>
                                        </div>
                                    </li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="store">
                <form id="storeform">
                    <input type="hidden" name="id" value="{$data.id}">
                    <input type="hidden" name="mendian" value="{$data.mendian}">
                    <div class="col-md-12 col-xs-12">
                        <div class="form-group col-md-2  col-xs-2 cent">
                            <div class="btn-group">
                                <button type="button" class="dropdown-toggle form-control" name="advertisement"
                                        style="border-right: 0 !important;padding: 0;text-align: center;">
                                    服务门店：
                                </button>
                            </div>
                        </div>
                        <div class="form-group col-md-2  col-xs-3 cent">
                            <div class="btn-group">
                                <input type="text" class="form-control" value="{$data.mendian_text}" placeholder=""
                                       style="border-left: 0 !important;">
                            </div>
                        </div>

                        <div class="form-group col-md-2  col-xs-2 cent">
                            <div class="btn-group">
                                <button type="button" class="dropdown-toggle form-control"
                                        style="border-right: 0 !important;padding: 0;text-align: center;">
                                    服务门市：
                                </button>
                            </div>
                        </div>
                        <div class="form-group col-md-2  col-xs-3 cent">
                            <div class="btn-group">
                                <select id="sales" class="form-control" name="menshi" style="border-left: 0;">
                                </select>
                            </div>
                        </div>
                    </div>
                    {volist name='state' id='info'}
                    {eq name="info.id" value="12"}
                    <div class="col-md-12 col-xs-12">
                        <div class="col-md-3 col-xs-3" style="border: 1px solid #c7c7c7;border-right: 0;">
                            <div class="radio radio-transparent" style="padding-top: 9px;margin: 0;">
                                <input type="radio" name="state" {eq name="$data.state" value="12" } checked {/eq}
                                id="edit1" class="radio_lable" value="12" >
                                <label for="edit1">未到店</label>
                            </div>
                        </div>
                        <div class="col-md-9 col-xs-9 cent" style="padding: 0">
                            <div class="btn-group">
                                <button type="button" {neq name="$data.state" value="12" } disabled {
                                /neq} class="dropdown-toggle form-control no-bor-radius" data-toggle="dropdown" >
                                <span class="title">
                                        {eq name="$data.state" value="12"}
                                            {eq name="$data.nostore" value=""}
                                                未到店原因
                                            {else/}
                                                {$data.nostore_text}
                                            {/eq}
                                        {else/}
                                            未到店原因
                                        {/eq}
                                    </span>
                                <span class="caret"></span>
                                <input type="hidden" name="nostore" value="{$data.nostore}">
                                </button>
                                <ul class="dropdown-menu dropdown-select" role="menu">
                                    <li><a href="javascript:;" id="">未填写</a></li>
                                    {volist name="nostore" id="vq" }
                                    <li><a href="javascript:;" id="{$vq.id}">{$vq.title}</a></li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                    </div>
                    {/eq}
                    {eq name="info.id" value="13"}
                    <div class="col-md-12 col-xs-12" style="margin-top: 20px;">
                        <div class="col-md-3 col-xs-3" style="border: 1px solid #c7c7c7;border-right: 0;">
                            <div class="radio radio-transparent" style="padding-top: 9px;margin: 0;">
                                <input type="radio" name="state" {eq name="$data.state" value="13" } checked {/eq}
                                id="edit2" class="radio_lable" value="13" >
                                <label for="edit2">进店流失</label>
                            </div>
                        </div>
                        <div class="col-md-9 col-xs-9 cent" style="padding: 0">
                            <div class="btn-group">
                                <button type="button" {neq name="$data.state" value="13" } disabled {
                                /neq} class="dropdown-toggle form-control no-bor-radius" data-toggle="dropdown" >
                                <span class="title">
                                        {eq name="$data.state" value="13"}
                                            {eq name="$data.instoreyy" value=""}
                                                到店流失原因
                                            {else/}
                                                {$data.instoreyy_text}
                                            {/eq}
                                        {else/}
                                            到店流失原因
                                        {/eq}
                                    </span>
                                <span class="caret"></span>
                                <input type="hidden" name="instoreyy">
                                </button>
                                <ul class="dropdown-menu dropdown-select" role="menu">
                                    <li><a href="javascript:;" id="">未填写</a></li>
                                    {volist name="instoreyy" id="vq" }
                                    <li><a href="javascript:;" id="{$vq.id}">{$vq.title}</a></li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                    </div>
                    {/eq}
                    {eq name="info.id" value="14"}
                    <div class="col-md-12 col-xs-12" style="margin-top: 20px;">
                        <div class="col-md-3 col-xs-3" style="border: 1px solid #c7c7c7;border-right: 0;">
                            <div class="radio radio-transparent" style="margin: 0;">
                                <input type="radio" name="state" {eq name="$data.state" value="14" } checked {/eq}
                                id="edit-status12" class="radio_lable" value="14" >
                                <label for="edit-status12" style="margin-top: 9px;">进店成交</label>
                            </div>
                            <div class="radio radio-transparent" style="margin: 0;border-top: 1px solid #ccc;">
                                <input type="radio" name="state" {eq name="$data.state" value="15" } checked {/eq}
                                id="edit-status10" class="radio_lable" value="15" >
                                <label for="edit-status10" style="margin-top: 9px;">流回成交</label>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-3  col-xs-3  cent" style="margin-top: 0px;">
                            <div class="btn-group">
                                <button type="button" {notin name="$data.state" value="14,15" }disabled {
                                /notin} class="dropdown-toggle form-control" data-toggle="dropdown">
                                <span class="title">
                                        {in name="$data.state" value="14,15"}
                                            {eq name="$data.mendian" value=""}
                                                选择调度
                                            {else/}
                                                {$data.mendian_text}
                                            {/eq}
                                        {else/}
                                            选择调度
                                        {/in}
                                    </span>
                                <span class="caret"></span>
                                <input type="hidden" name="mendian" value="{$data.mendian}">
                                </button>
                                <ul class="dropdown-menu dropdown-select" role="menu">
                                    <li><a href="javascript:;" id="">选择调度</a></li>
                                    {volist name="store" id="info"}
                                    <li><a href="javascript:;" id="{$info.id}">{$info.name}</a></li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                        <div class="input-group form-group col-md-2  col-xs-2 cent"
                             style="margin-top: 0px;margin-left: -1px;">
                            <div class="btn-group">
                                <button type="button" {notin name="$data.state" value="14,15" }disabled{
                                /notin} class="dropdown-toggle form-control" data-toggle="dropdown">
                                <span class="title">
                                        {in name="$data.state" value="14,15"}
                                            {eq name="$data.payment" value=""}
                                                支付方式
                                            {else/}
                                                {$data.payment_text}
                                            {/eq}
                                        {else/}
                                            支付方式
                                        {/in}
                                    </span>
                                <span class="caret"></span>
                                <input type="hidden" name="payment" value="{$data.payment}">
                                </button>
                                <ul class="dropdown-menu dropdown-select" role="menu">
                                    <li><a href="javascript:;" id="">选择支付</a></li>
                                    {volist name="payment" id="info"}
                                    <li><a href="javascript:;" id="{$info.id}">{$info.title}</a></li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                        <div class="form-group col-md-4  col-xs-4 cent">
                            <div class="form-group col-md-4  col-xs-4 cent">
                                <div class="btn-group">
                                    <button type="button" {notin name="$data.state" value="14,15" }disabled {
                                    /notin} class="dropdown-toggle form-control" name="advertisement"
                                    style="border-right: 0 !important;padding: 0;text-align: center;">
                                    订单号：
                                    </button>
                                </div>
                            </div>
                            <div class="form-group col-md-8  col-xs-8 cent">
                                <div class="btn-group">
                                    <input type="text" {notin name="$data.state" value="14,15" }disabled {else/}
                                    value="{$data.pay_order}" {/notin}
                                    class="form-control" name="pay_order" placeholder="例:0001" style="border-left: 0
                                    !important;">
                                </div>
                            </div>
                        </div>
                        <div style="float: right;margin-top: -31px;" class="col-md-9  col-xs-9">
                            <div class="form-group col-md-4  col-xs-4 cent">
                                <div class="form-group col-md-6  col-xs-6 cent">
                                    <div class="btn-group">
                                        <button type="button" {notin name="$data.state" value="14,15" }disabled {
                                        /notin} class="dropdown-toggle form-control" name="advertisement"
                                        style="border-right: 0 !important;text-align: center;">
                                        套系金额
                                        </button>
                                    </div>
                                </div>
                                <div class="col-md-6 col-xs-6 cent">
                                    <div class="btn-group">
                                        <input type="text" {notin name="$data.state" value="14,15" }disabled {else/}
                                        value="{$data.txje}" {/notin} class="form-control" name="txje"
                                        placeholder="￥0.00"
                                        style="border-left: 0 !important;border-right: 0;">
                                    </div>
                                </div>
                            </div>
                            <div class="form-group col-md-4  col-xs-4 cent" style="margin-left: -1px;">
                                <div class="form-group col-md-6 col-xs-6 cent">
                                    <div class="btn-group">
                                        <button type="button" {notin name="$data.state" value="14,15" }disabled {
                                        /notin} class="dropdown-toggle form-control"
                                        style="border-right: 0 !important;text-align: center;">
                                        应收金额
                                        </button>
                                    </div>
                                </div>
                                <div class="form-group col-md-6  col-xs-6 cent">
                                    <div class="btn-group">
                                        <input type="text" {notin name="$data.state" value="14,15" }disabled {else/}
                                        value="{$data.ysje}" {/notin} class="form-control" name="ysje"
                                        placeholder="￥0.00"
                                        style="border-left: 0 !important;">
                                    </div>
                                </div>
                            </div>
                            <div class="form-group col-md-4  col-xs-4 cent" style="margin-left: -1px;">
                                <div class="form-group col-md-6  col-xs-6 cent">
                                    <div class="btn-group">
                                        <button type="button" {notin name="$data.state" value="14,15" }disabled {
                                        /notin} class="dropdown-toggle form-control" name="advertisement"
                                        style="border-right: 0 !important;padding: 0;text-align: center;">
                                        实收金额
                                        </button>
                                    </div>
                                </div>
                                <div class="col-md-6  col-xs-6 cent">
                                    <div class="btn-group">
                                        <input type="text" {notin name="$data.state" value="14,15" }disabled {else/}
                                        value="{$data.ssje}" {/notin} class="form-control" name="ssje"
                                        placeholder="￥0.00"
                                        style="border-left: 0 !important;">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    {/eq}
                    {/volist}
                    <div class="input-group col-md-12 col-xs-12">
                        <div class="btn-group">
                            <textarea style="height: 200px;width: 100%;resize: none;padding: 10px;outline: none;"
                                      name="msbz" placeholder="请输入门市接待备注">{$data.msbz}</textarea>
                        </div>
                    </div>
                </form>
                <div class="col-md-12 history col-xs-12">
                    <span class="historylog" onclick="showlog(this)">历史到店记录</span>
                    <div class="order-log-model log">
                        <div class="wrapper">
                            <div class="list">
                                <ul>
                                    {volist name='store_log' id='ul'}
                                    <li class="cls">
                                        <img class="log_img"
                                             src="{$vo.logimg|default='__STATIC__/admin/assets/avatars/user.jpg'}"
                                             alt="">
                                        <div class="more">
                                            <div class="cont">
                                                <p><label style="color: red;">{$ul.state_text}</label><span
                                                        style="float: right;">操作时间：{$ul.time  | date='Y-m-d H:i:s',###}</span>
                                                </p>
                                                <p>{$ul.store_note}</p>
                                                {eq name="ul.state" value="12"}
                                                <p>未到店原因：{$ul.nostore_text}</p>
                                                {/eq}
                                                {eq name="ul.state" value="13"}
                                                <p>进店流失原因：{$ul.instoreyy_text}</p>
                                                {/eq}
                                                {in name="ul.state" value="14,15"}
                                                <p>调度：{$ul.mendian_text}</p>
                                                <p>支付方式：{$ul.payment_text}</p>
                                                <p>金牌单号：{$ul.pay_order}</p>
                                                <p>套系金额：{$ul.txje}</p>
                                                <p>应收金额：{$ul.ysje}</p>
                                                <p>实收金额：{$ul.ssje}</p>
                                                {/in}
                                            </div>
                                            <div class="date">
                                                <span>门店：{$ul.mendian_text}<i style="color:#d95223;">&emsp;门市：{$ul.menshi_text}</i></span>
                                                &emsp;<span style="float: right;">【PC端操作】</span>
                                            </div>
                                        </div>
                                    </li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="messages1">
                <div class="order-log-model">
                    <div class="wrapper">
                        <div class="list">
                            <span>The end</span>
                            <ul>
                                {volist name="logdata" id="vo"}
                                <li class="cls">
                                    <img class="log_img"
                                         src="{$vo.logimg|default='__STATIC__/admin/assets/avatars/user.jpg'}" alt="">
                                    <div class="more">
                                        <div class="cont">
                                            <label>{$vo.czaction_text}-{$vo.id}</label>
                                            <p>{$vo.remark}</p>
                                        </div>
                                        <div class="date">
                                            <span>@{$vo.czry_text}<i style="color:#d95223;">【{$vo.depar_id_text}】</i>{$vo.create_time}</span>
                                            <span>【{$vo.khd_text}】</span>
                                            <label style="color: #a1a4b8;">【{$vo.state_text}】</label>
                                        </div>
                                    </div>
                                </li>
                                {/volist}
                            </ul>
                            <span>start</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-12 col-xs-12 btn_box">
        <button type="button" class="btn btn-primary">确定</button>
        <button type="button" class="btn btn-default" data-dismiss="modal" style="margin: 20px;">取消</button>
    </div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="__STATIC__/admin/assets/js/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="__STATIC__/admin/assets/js/vendor/bootstrap/bootstrap.min.js"></script>
<!--引入下拉表单-->
<script src="__STATIC__/admin/bootstrap-select/dist/js/bootstrap-select.js?2018"></script>
<!--引入时间插件-->
<script type="text/javascript" src="__STATIC__/common/laydate/laydate.js"></script>
<!--引入公共js-->
<script type="text/javascript" src="__STATIC__/admin/js/common.js"></script>
<!--引入layer插件-->
<script type="text/javascript" src="__STATIC__/common/layer/layer.js"></script>
<!--引入富文本插件-->
<script type="text/javascript" src="__STATIC__/common/release/wangEditor.min.js"></script>
{include file="base/validate"}

<script>
    var phone_vile = /^(13[0-9]|14[5-9]|15[012356789]|166|17[0-8]|18[0-9]|19[8-9])[0-9]{8}$/;
    laydate.render({
        elem: '#date0',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date1',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date2',
        type: 'date'
    });
    laydate.render({
        elem: '#date3',
        type: 'date'
    });
    laydate.render({
        elem: '#date4',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date5',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date6',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date7',
        type: 'datetime'
    });
    laydate.render({
        elem: '#date15'
        , type: 'time'
        , range: true
    })

    var E = window.wangEditor
    var editor = new E('#invitations')
    var text = $('#invitations-text')

    editor.customConfig.onchange = function (html) {
        // 监控变化，同步更新到 textarea
        text.val(html)
    }

    function showlog(obj) {
        $(obj).next('.log').toggle();
    }

    // 隐藏“网络图片”tab
    editor.customConfig.showLinkImg = false;
    editor.customConfig.uploadImgShowBase64 = true;   // 使用 base64 保存图片
    editor.customConfig.menus = [
        'undo',  // 撤销
        'head',  // 标题
        'bold',  // 粗体
        'italic',  // 斜体
        'underline',  // 下划线
        'strikeThrough',  // 删除线
        'foreColor',  // 文字颜色
        'backColor',  // 背景颜色
        'emoticon',  // 表情
        'image',  // 插入图片
        'redo'  // 重复
    ];
    // 或者 var editor = new E( document.getElementById('#editor') )
    editor.create();
    // 初始化 textarea 的值
    text.val(editor.txt.html('{$data.yybz}'));
</script>
<!--引入时间插件end-->

<script>
    /*数据校验*/
    var fields = {
        name_z: {
            message: '用户名验证失败',
            validators: {
                notEmpty: {
                    message: '主要联系人不能为空'
                }
            }
        },
        phone_z: {
            message: 'The phone is not valid',
            validators: {
                regexp: {
                    regexp: phone_vile,
                    message: '请输入正确的手机号码'
                },
                threshold: 10,
                remote: {
                    type: "post",
                    url: '{:url(\'getContent\')}',
                    message: '当前号码已经存在',
                    delay: 1000,
                    data: function (validator) {
                        return {
                            name: "phone_z|phone_f|wechat|qq",
                            value: $('[name="phone_z"]').val(),
                            id: $('#orderid').val()
                        };
                    }
                }
            }
        },
        wechat: {
            message: 'The phone is not valid',
            validators: {
                threshold: 6,
                remote: {
                    type: "post",
                    url: '{:url(\'getContent\')}',
                    message: '当前微信已经存在',
                    delay: 2000,
                    data: function (validator) {
                        return {
                            name: "phone_z|phone_f|wechat|qq",
                            value: $('[name="wechat"]').val(),
                            id: $('#orderid').val()
                        };
                    }
                }
            }
        },
        phone_f: {
            message: 'The phone is not valid',
            validators: {
                regexp: {
                    regexp: phone_vile,
                    message: '请输入正确的手机号码'
                },
                threshold: 10,
                remote: {
                    type: "post",
                    url: '{:url(\'getContent\')}',
                    message: '当前号码已经存在',
                    delay: 1000,
                    data: function (validator) {
                        return {
                            name: "phone_z|phone_f|wechat|qq",
                            value: $('[name="phone_f"]').val(),
                            id: $('#orderid').val()
                        };
                    }
                },
                different: {
                    //不能和用户名相同
                    field: 'phone_z',
                    //需要进行比较的input name值
                    message: '不能和主电话相同'
                }

            }
        },
        qq: {
            message: 'The phone is not valid',
            validators: {
                regexp: {
                    regexp: /^[1-9][0-9]{4,14}$/,
                    message: '请输入正确的QQ号码'
                },
                threshold: 10,
                remote: {
                    type: "post",
                    url: '{:url(\'getContent\')}',
                    message: '当前QQ号码已经存在',
                    delay: 1000,
                    data: function (validator) {
                        return {
                            name: "phone_z|phone_f|wechat|qq",
                            value: $('[name="qq"]').val(),
                            id: $('#orderid').val()
                        };
                    }
                }
            }
        },
    }

    //页面初始化状态隐藏控制
    $(function () {
        {
            $json_state
        }
    .
        forEach(function (value) {
            if (value.id == {$data.state}
        )
            {
                $("#edit-status" + value.id).attr('checked', true);
                $(".edit-status" + value.id).removeAttr('disabled');
                $(".edit-status" + value.id).attr('data-change', true);
            }
        else
            {
//                if( $(".edit-status"+value.id).data('change') !== true || $(".edit-status"+value.id).data('change') == undefined){
//                    $(".edit-status"+value.id).attr('disabled',true);
//                }
                for (var i = 0; i < $(".edit-status" + value.id).length; i++) {
                    if ($(".edit-status" + value.id).eq(i).data('change') !== true || $(".edit-status" + value.id).eq(i).data('change') == undefined) {
                        $(".edit-status" + value.id).eq(i).attr('disabled', true);
                    }
                }
            }
        })
    });

    //点击状态其他隐藏
    $('.radio_lable').click(function (index, length) {
        var state = $(this).val();
        $(".edit-status").removeAttr('data-change');
        $(".edit-status").attr('disabled', true);
        {
            $json_state
        }
    .
        forEach(function (value) {
            if (value.id == state) {
                $("#edit-status" + value.id).attr('checked', true);
                $(".edit-status" + value.id).removeAttr('disabled');
                $(".edit-status" + value.id).attr('data-change', true);
            } else {
                for (var i = 0; i < $(".edit-status" + value.id).length; i++) {
                    if ($(".edit-status" + value.id).eq(i).data('change') !== true || $(".edit-status" + value.id).eq(i).data('change') == undefined) {
                        $(".edit-status" + value.id).eq(i).attr('disabled', true);
                    }
                }
            }
        });
    });

    //单个字符串与数组中相等的值
    function in_array(a, v) {
        var i;
        var array = a.split(',');
        for (i = 0; i < array.length; i++) {
            if (v == array[i]) {
                return true;
            }
        }
        return false;
    } // 返回-1表示没找到，返回其他值表示找到的索引

    $(function () {
        var channels = $('#channels');
        //初始化来源
        var channel = "{$data['channel']}";
        var source = "{$data['source']}";
        var banji = "{$data['banji']}";
        var obj = $('#source0');
        getsource(channel, obj, source, banji, true);
        //获取邀约人员
        var id = "{$data['yykf_group']}";
        var divs = $('#invit1');
        var invit = "{$data['yykf']}";
        if (id != "") {
            groupinvit(id, divs, invit);
        }

        //获取门店已分配的门市人员
        var id = "{$data.mendian}";
        var divs = $('#sales');
        group(id, divs);


    });

    /*下拉菜单事件*/
    $('.dropdown-toggle').next('.dropdown-menu').find('li a').click(function () {
        $(this).parent().parent().prev('.dropdown-toggle').find('.title').html($(this).html());
        var identification = $(this).prop('id');
        $(this).parent().parent().prev('.dropdown-toggle').find('input').val(identification);
    });

    /*p判断是否时查看日志*/
    $('.nav-tabs').find('li').click(function () {
        if ($(this).attr('data-action') == '1') {
            $('.btn_box').hide();
        } else {
            $('.btn_box').show();
        }
    })
    /* $('.nav-tabs').find('li').eq(3).click(function () {
         $('.btn_box').hide();
     })*/

    //推荐客资校验
    $('#res_form').bootstrapValidator({
        message: '',
        live: 'enabled',
        fields: fields
    });
    /*修改数据*/
    $('.btn-primary').click(function () {
        var form = $('.btn-primary').parent('.btn_box').prev('.panel-body');
        var formid = form.find('.tab-content').find('.active').find('form').attr('id');
        if (formid == 'res_form') {
            var formData = new FormData($("#res_form")[0]);
            var bootstrapValidator = $("#res_form").data('bootstrapValidator');
            bootstrapValidator.validate();
            if (bootstrapValidator.isValid()) {
                if (!$("[name='phone_z']").val() && !$("[name='wechat']").val()) {
                    return layer.msg("联系人电话或微信必填其一", {icon: 0});
                }
                {
                    eq
                    name = "data.addtype"
                    value = "2"
                }
                if (!$("[name='rec_phone']").val() && !$("[name='rec_wechat']").val()) {
                    return layer.msg("推荐人电话或微信必填其一", {icon: 0});
                }
                {
                    /eq}
                    $.ajax({
                        type: "POST",
                        url: "{:url('edit')}",
                        data: formData,
                        async: false,
                        cache: false,
                        contentType: false,
                        processData: false,
                        beforeSend: function () {
                            $('.btn-primary').attr("disabled", "false"); //禁止点击
                        },
                        success: function (data) {
                            layer.msg(data.info, {icon: data.status});
                            setTimeout(function () {
                                var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                                parent.layer.close(index); //再执行关闭
                                window.parent.location.reload();
                            }, 2000); //延迟演示
                        }
                    });
                    return false;
                }
            else
                return;

            } else if (formid == 'invitationform') {
                saveInvite();
            } else if (formid == 'storeform') {
                saveStore();
            }
        }
    );
    /*点击取消按钮*/
    $('.btn-default').click(function () {
        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index); //再执行关闭
    });

    //    var fields ={
    //        bbname: {
    //            message: '主要姓名验证失败',
    //            validators: {
    //                notEmpty: {
    //                    message: '主要姓名不能为空'
    //                }
    //            }
    //        },
    //        name_z: {
    //            message: '用户名验证失败',
    //            validators: {
    //                notEmpty: {
    //                    message: '主要联系人不能为空'
    //                }
    //            }
    //        },
    //        phone_z: {
    //            message: '',
    //            validators: {
    //                regexp: {
    //                    regexp: /^1[3|5|8]{1}[0-9]{9}$/,
    //                    message: '请输入正确的手机号码'
    //                },
    //                threshold :  10 ,
    //                remote: {
    //                    type: "post",
    //                    url: '{:url(\'getContact\')}',
    //                    message: '当前号码已经存在',
    //                    delay: 1000,
    //                    data: function(validator) {
    //                        return {
    //                            name: $('[name="phone_z"]').attr('name'),
    //                            value: $('[name="o_phone_z"]').val(),
    //                            id : $('#orderid').val()
    //                        };
    //                    }
    //                }
    //
    //            }
    //        },
    //        wechat: {
    //            message: '',
    //            enabled: true,
    //            validators: {
    //                threshold :  6 ,
    //                remote: {
    //                    type: "post",
    //                    url: '{:url(\'getContact\')}',
    //                    message: '当前号码已经存在',
    //                    delay: 2000,
    //                    data: function(validator) {
    //                        return {
    //                            name: $('[name="wechat"]').attr('name'),
    //                            value: $('[name="wechat"]').val(),
    //                            id : $('#orderid').val()
    //                        };
    //                    }
    //                }
    //
    //            }
    //        },
    //        rec_user:{
    //            message: '推荐人验证失败',
    //            validators: {
    //                notEmpty: {
    //                    message: '推荐人姓名不能为空'
    //                }
    //            }
    //        },
    //        rec_phone: {
    //            message: 'The phone is not valid',
    //            enabled: true,
    //            validators: {
    //                regexp: {
    //                    regexp: /^1[3|5|8]{1}[0-9]{9}$/,
    //                    message: '请输入正确的手机号码'
    //                },
    //                threshold :  10 ,
    //                remote: {
    //                    type: "post",
    //                    url: '{:url(\'getContact\')}',
    //                    message: '当前号码已经存在',
    //                    delay: 1000,
    //                    data: function(validator) {
    //                        return {
    //                            name: $('[name="rec_phone"]').attr('name'),
    //                            value: $('[name="rec_phone"]').val(),
    //                            id : $('#orderid').val()
    //                        };
    //                    }
    //                }
    //
    //            }
    //        },
    //        rec_wechat: {
    //            message: 'The phone is not valid',
    //            enabled: true,
    //            validators: {
    //                threshold :  6 ,
    //                remote: {
    //                    type: "post",
    //                    url: '{:url(\'getContact\')}',
    //                    message: '当前号码已经存在',
    //                    delay: 2000,
    //                    data: function(validator) {
    //                        return {
    //                            name: $('[name="rec_wechat"]').attr('name'),
    //                            value: $('[name="rec_wechat"]').val(),
    //                            id : $('#orderid').val()
    //                        };
    //                    }
    //                }
    //
    //            }
    //        },
    //    }
    //推荐客资校验
    $('#res_form').bootstrapValidator({
        message: '',
        live: 'enabled',
        fields: fields
    });

    /*修改推广信息*/
    function edit() {
        var bootstrapValidator = $("#res_form").data('bootstrapValidator');
        bootstrapValidator.validate();
        if (bootstrapValidator.isValid()) {
            if (!$("[name='o_phone']").val() && !$("[name='o_wechat']").val()) {
                return layer.msg("联系人电话或微信必填其一", {icon: 0});
            }
            {
                eq
                name = "data.addtype"
                value = "2"
            }
            if (!$("[name='rec_phone']").val() && !$("[name='rec_wechat']").val()) {
                return layer.msg("推荐人电话或微信必填其一", {icon: 0});
            }
            {
                /eq}
                var formData = new FormData($("#res_form")[0]);
                $.ajax({
                    type: "POST",
                    url: "{:url('edit')}",
                    data: formData,
                    async: false,
                    cache: false,
                    contentType: false,
                    processData: false,
                    beforeSend: function () {
                        $('.btn-primary').attr("disabled", "false"); //禁止点击
                    },
                    success: function (data) {
                        layer.msg(data.info, {icon: data.status});
                        setTimeout(function () {
                            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                            parent.layer.close(index); //再执行关闭
                            window.parent.location.reload();
                        }, 2000); //延迟演示

                    }
                });
                return false;
            }
            return;

        }

        /*修改客资获取对应的邀约组员*/
        $('#group').change(function () {
            var id = $('#group').val();
            var divs = $('#invit1');
            groupinvit(id, divs);

        });
        // 门店环节
        $('#o_store').change(function () {
            var id = $('#o_store').val();
            var divs = $('#sales');
            group(id, divs);
        });

        //邀约人员获取
        function groupinvit(id, obj, invit) {
            $.post("{:url('common/getuserByGroup')}", {depart_id: id}, function (result) {
                var html = '';
                obj.html('');
                if (id == '0') {
                    html += "<option value=''>未分配邀约</option>";
                } else {
                    if (result.length != 0) {
                        for (var i in result) {
                            if (invit == result[i].id) {
                                html += "<option value='" + result[i].id + "' selected  >" + result[i].username + "</option>";
                            } else {
                                html += "<option value='" + result[i].id + "'>" + result[i].username + "</option>";
                            }
                        }
                    } else {
                        html += "<option value='' selected='selected'>暂无邀约人员</option>";
                    }

                }
                obj.append(html);
            });
        }


        // 获取获取门市
        function group(id, obj) {
            $.post("{:url('common/getuserByGroup')}", {depart_id: id}, function (result) {
                var html = '';
                obj.html('');
                if (result == '0') {
                    obj.append(html);
                } else {
                    if (result.length == 0) {
                        html += "<option value=''>暂无门市人员</option>"
                    } else {
                        for (var i in result) {
                            html += "<option value='" + result[i].id + "'>" + result[i].username + "</option>";
                        }
                    }
                }
                obj.append(html);
            });
        }

        /*保存邀约记录*/
        function saveInvite() {
            var formData = new FormData($("#invitationform")[0]);
            $.ajax({
                type: "POST",
                url: "{:url('logSave')}",
                data: formData,
                async: false,
                cache: false,
                contentType: false,
                processData: false,
                beforeSend: function () {
                    $('.btn-primary').attr("disabled", "false"); //禁止点击
                },
                success: function (data) {
                    layer.msg(data.info, {icon: data.status});
                    setTimeout(function () {
                        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                        parent.layer.close(index); //再执行关闭
                        window.parent.location.reload();
                    }, 2000); //延迟演示
                }
            });
        }

        /*保存门店服务记录*/
        function saveStore() {
            var formData = new FormData($("#storeform")[0]);
            $.ajax({
                type: "POST",
                url: "{:url('saveStore')}",
                data: formData,
                async: false,
                cache: false,
                contentType: false,
                processData: false,
                beforeSend: function () {
                    $('.btn-primary').attr("disabled", "false"); //禁止点击
                },
                success: function (data) {
                    layer.msg(data.info, {icon: data.status});
                    setTimeout(function () {
                        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                        parent.layer.close(index); //再执行关闭
                        window.parent.location.reload();
                    }, 2000); //延迟演示
                }
            });
        }

//        $('.cheannele').find('li a').click(function () {
//            $('#channels').val($(this).attr('id'));
//            var channel = $('#channels').val();
//            var obj = $('#source0');
//            getsource(channel, obj);
//        });
        /*联动来源*/
        $('#channels').on('hidden.bs.select', function () {
            var channel = $(this).selectpicker('val');
            var obj = $('#source0');
            getsource(channel, obj);
        });

        /*根据渠道获取来源*/
        function getsource(data, obj, source, banji) {
            if (data != 0) {
                $.post("{:url('common/getSourceByChennel')}", {channel: data}, function (result) {
                    var html = "";
                    obj.html('');
                    if (result == '') {
                        html += "<option value='0'>暂无来源</option>";
                        $('#banjishow').hide();
                        $('#xingqi').hide();
                        $('#shangkeriqi').hide();
                        obj.append(html);
                    } else {
                        $.each(eval(result), function (i, n) {
                            $("<option value='" + n.id + "'>" + n.title + "</optinon>").appendTo(obj);
                        });
                    }

                });
                var banjis = $('#banji');
                $.post("{:url('common/getBanjiBySource')}", {source: data}, function (result) {
                    var html = "";
                    banjis.html('');
                    if (result == '') {
                        $('#banjishow').hide();
                        $('#xingqi').hide();
                        $('#shangkeriqi').hide();
                        html += "<option value='0' selected='selected'>暂无班级</option>";
                        banjis.append(html);
                    } else if (result.code == 0) {
                        return false;
                    } else {
                        $.each(eval(result), function (i, n) {
                            $("<option value='" + n.id + "'>" + n.banjiname + "</optinon>").appendTo(obj);
                        });

                        $('#banjishow').show();
                        $('#xingqi').show();
                        $('#shangkeriqi').show();
                        // $.each(eval(result), function (i, n) {
                        //     $("<option value='" + n.id + "' selected='selected'>" + n.banjiname + "</optinon>").appendTo(banji);
                        // });
                    }
                })
            } else {
                $('#channels').prevAll('.title').html('渠道');
                var html = "<option value='0'>暂无来源</option>";
                obj.html('').append(html);
            }
        }
    }
</script>
</body>
</html>